"use strict"
//基础属性
class BasicAttri {
    constructor(opts) {
        opts = opts || {}
        this.attack = opts.attack || 0 //攻击力
        this.maxHp = opts.maxHp || 0 //生命
        this.maxMp = opts.maxMp || 0 //魔法
        this.defend = opts.defend || 0 //防御
        this.critRate = opts.critRate || 0 //暴击概率
        this.critHurt = opts.critHurt || 0 //暴击伤害
        this.str = opts.str || 0 //力量:提升基础攻击力和少量生命
        this.con = opts.con || 0 //体质:提升防御和生命
        this.agile = opts.agile || 0 //意志:提升物理技能伤害
        this.wisdom = opts.wisdom || 0 //智慧:提升幸运和少量生命
        this.lucky = opts.lucky || 0 //幸运值
        this.ignoreDefend = opts.ignoreDefend || 0 //无视防御力
    }
}

module.exports = BasicAttri